//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class CancelShipment extends LogicCommand {
    private final int cmdId = 27;
    private final byte slot;

    public CancelShipment(int tt, int slot) {
        super(tt);
        this.slot = (byte)slot;
    }

    public int getCommandId() {
        return 27;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(27);
        stream.writeByte(this.slot);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
